package  
{
	import flash.text.TextField;
	/**
	 * ...
	 * @author patsup
	 */
	public class HSMenu extends Menu 
	{
		//menu image parameters
		private const COLOR:int = 0x00FF00;
		private const WIDTH:int = 800;
		private const HEIGHT:int = 480;
		
		private const MENU_BUTTON_X_STARTLOC:int = 500;			//Button for return back to menu
		private const MENU_BUTTON_Y_STARTLOC:int = 420;
		
		private var txtLabel:TextField;
		
		private var mainRef:Main;
		
		private var menuButtonImgData:ImageData;
		private var menuButton:MenuButton;						//return to start menu button
		
		public function HSMenu(mainRef:Main) 
		{
			txtLabel = new TextField();
			this.mainRef = mainRef;
			InitImage();
			
		}
		
		//InitImage()
		//Initializes the image of the Menu
		protected override function InitImage():void
		{
			graphics.beginFill(COLOR);
			graphics.drawRect(0, 0, WIDTH, HEIGHT);
			graphics.endFill();
			
			txtLabel.text = "High Score Menu";
			addChild(txtLabel);
			
			menuButtonImgData = new ImageData(MENU_BUTTON_X_STARTLOC, MENU_BUTTON_Y_STARTLOC, "Back");
			menuButton = new MenuButton(menuButtonImgData, MenuBtnInputMouseClick);
			
			
			addChild(menuButton);
			
			super.InitImage();
		}
		//MenuBtnInputMouseClick()
		//called on back menu button mouse click
		protected function MenuBtnInputMouseClick():void
		{
			mainRef.ReturnToStartMenu(this);
		}
	}

}